Class sjl.RandomGenerator
All Packages Class Hierarchy This Package Previous Next Index
Class sjl.RandomGenerator
java.lang.Object
|
+----sjl.RandomGenerator
- public class RandomGenerator
- extends Object
RandomGenerator
is a random number generator. It implements
the same algorithm as the random number generator in STL.
-
seed
- The default seed.
-
RandomGenerator()
- Contruct a
RandomGenerator
using the default seed.
-
RandomGenerator(long)
- Contruct a
RandomGenerator
using the specified seed.
-
nextLong(long)
- Return the next pseudo random number.
seed
public static long seed
- The default seed.
RandomGenerator
public RandomGenerator()
- Contruct a
RandomGenerator
using the default seed.
RandomGenerator
public RandomGenerator(long seed)
- Contruct a
RandomGenerator
using the specified seed.
nextLong
public long nextLong(long limit)
- Return the next pseudo random number. The returned number will be
in the range
[0,limit)
.
All Packages Class Hierarchy This Package Previous Next Index